#ifdef __cplusplus
extern "C" {
#endif


#include "__str.h"
#include <string.h>
#include <malloc.h>

void __begheader(__str, initialize)
	char * _tValue
__begbody
    __this(__str)->mLength = strlen(_tValue);
	__this(__str)->mValue = (char *)malloc(__this(__str)->mLength);
	memset(__this(__str)->mValue, '\0', __this(__str)->mLength);
	memcpy(__this(__str)->mValue, _tValue, __this(__str)->mLength);
__endbody

int strRfindeChar(char * _tSrc, char _tKey)
{
	int length = strlen(_tSrc);
	for (int i = length; i > 0; i--)
	{
		if (_tKey == _tSrc[i])
		{
			return i;
		}
	}
	return 0xFFFFFFFF;
}


#ifdef __cplusplus
}
#endif
